// 聊天消息类型
export interface ChatMessage {
  role: 'user' | 'assistant';
  content: string;
  timestamp: string;
}

// 聊天历史记录类型
export interface ChatHistory {
  id: string;
  title: string;
  model: string;
  messages: ChatMessage[];
  createTime: string;
  updateTime: string;
}

// 聊天请求参数类型
export interface ChatParams {
  question: string;
  model?: string;
}

// 聊天响应类型
export interface ChatResponse<T = any> {
  code: number;
  message: string;
  data: T;
} 